package springbootyx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springbootyx.mapper.IViaMapper;
@Service

public class ViaService {

    @Autowired
    private IViaMapper viaMapper;
    //新增用户时也要新增一个via
    public void addVia(Integer userid, String photo) {
        viaMapper.addVia(userid, photo);
    }
    //更新用户还要更新此表
    public void updateVia(Integer userid, String photo) {
        viaMapper.updateVia(userid, photo);
    }

}
